how to remove last item from array in javascript

welcome to shbcf.ru